libxc: correct error message in xc_sr_common.c
authorJuergen Gross <jgross@suse.com>
Thu, 10 Aug 2017 11:24:27 +0000 (13:24 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 15 Aug 2017 14:45:43 +0000 (15:45 +0100)
commit8dca2fe393d7ef6fdffd0c9632cdd930a8f49abe
treefdcf668a20dacfbcc223a9e2fea1ab6654075315
parentb66e8d119cb8d8558e1ac8c61e3e2c503038cc80
libxc: correct error message in xc_sr_common.c

When the record length for sending the p2m frames in a migration
stream is too large, the issued error message is not very helpful:

xc: Record (0x00000003, x86 PV P2M frames) length 0x8 exceeds max
    (0x800000): Internal error

When printing the error use the size which was tested instead that of
the record header length.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_sr_common.c